﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{

    class Program
    {
        static void Main(string[] args)
        {
           

            Num num = new Num();

            int[] arr = new int[5];
            Console.WriteLine("请输入五个数：");
            for (int i = 0; i < arr.Length; i++)
            {
                arr[i] = int.Parse(Console.ReadLine());
            }

            int min = arr[0];
            int max = arr[0];
            int sum = 0;
            int avg = 0;

            Num.REF(ref arr, ref min, ref max, ref sum, ref avg);

            Console.WriteLine("最大值{0}，最小值{1}，和{2}，平均数{3}",max,min,sum,avg);

            Num.OUT(arr, out min, out max, out sum, out avg);

            Console.WriteLine("最大值{0}，最小值{1}，和{2}，平均数{3}", max, min, sum, avg);


        }
        static void text()
        {
            Student st = new Student();
            st.Name1 = "张三";
            st.Name2 = "李四";
            st.Name3 = "王五";
            st.Name4 = "关羽";
            st.Teacher1 = "张飞";
            st.Teacher2 = "美女";

            Console.WriteLine("我叫{0}，我老师是{1}", st.Name1, st.Teacher1);
            Console.WriteLine("我叫{0}，我老师是{1}", st.Name2, st.Teacher1);
            Console.WriteLine("我叫{0}，我老师是{1}", st.Name3, st.Teacher1);
            Console.WriteLine("我叫{0}，我老师是{1}", st.Name4, st.Teacher1);

            Console.WriteLine("我叫{0}，我老师是{1}", st.Name1, st.Teacher2);
            Console.WriteLine("我叫{0}，我老师是{1}", st.Name2, st.Teacher2);
            Console.WriteLine("我叫{0}，我老师是{1}", st.Name3, st.Teacher2);
            Console.WriteLine("我叫{0}，我老师是{1}", st.Name4, st.Teacher2);

        }
        

        public enum aaa
        {
            新订单,
            已发货,
            已签收,
            已评价
        }
        public enum Fruit
        {
            香蕉 = 3,
            苹果 = 4,
            西瓜 = 1,
            草莓 = 5,
            葡萄 = 8,
            哈密瓜 = 2,
            奇异果 = 6
        }
        public static void Score(Fruit fruit)
        {
            switch (fruit)
            {
                case Fruit.香蕉:
                    Console.WriteLine("获得{0}分", (int)Fruit.香蕉);
                    break;
                case Fruit.苹果:
                    Console.WriteLine("获得{0}分", (int)Fruit.苹果);
                    break;
                case Fruit.西瓜:
                    Console.WriteLine("获得{0}分", (int)Fruit.西瓜);
                    break;
                case Fruit.草莓:
                    Console.WriteLine("获得{0}分", (int)Fruit.草莓);
                    break;
                case Fruit.葡萄:
                    Console.WriteLine("获得{0}分", (int)Fruit.葡萄);
                    break;
                case Fruit.哈密瓜:
                    Console.WriteLine("获得{0}分", (int)Fruit.哈密瓜);
                    break;
                case Fruit.奇异果:
                    Console.WriteLine("获得{0}分", (int)Fruit.哈密瓜);
                    break;
                default:
                    break;
            }
        }

        public enum Rpg
        {
            战士,
            法师,
            精灵,
        }

        public static void RPG(Rpg rpg)
        {
            switch (rpg)
            {
                case Rpg.战士:
                    Console.WriteLine("战士的技能：碎石打击、烈焰锚钩、战斗咆哮");
                    break;
                case Rpg.法师:
                    Console.WriteLine("法师的技能：巨浪冲击、元素突击、复仇杀戮");
                    break;
                case Rpg.精灵:
                    Console.WriteLine("精灵的技能：减速陷阱、能量浪潮、旋风剑舞");
                    break;
                default:
                    break;
            }
        }

    }
}
